module model.User;

enum Role
{
    admin = 1,
    guest = 2,
}

class User
{
    uint id;
    string username;
    string password;
    string nickname;
    uint role;

    this(uint id, string username, string nickname, uint role)
    {
        this.id = id;
        this.username = username;
        this.nickname = nickname;
        this.role = role;
    }

    this(uint id, string username, string password, string nickname, uint role)
    {
        this.id = id;
        this.username = username;
        this.password = password;
        this.nickname = nickname;
        this.role = role;
    }
}

class UserDto
{
    uint id;
    string username;
    string nickname;
    uint role;

    this()
    {

    }

    this(uint id, string username, string nickname, uint role)
    {
        this.id = id;
        this.username = username;
        this.nickname = nickname;
        this.role = role;
    }
}
